public class Person {
   private int age;
   public int getAge(){
       return  age;
   }
    public void setAge(int age) {
       if(age<=0){
           System.out.println("您输入的年龄有误，请重新输入");
       }else{
           this.age = age;
       }
    }

    public void speak(){
        System.out.println("我今年"+age+"岁了");
    }

    public static int add(int x,int y){
       return x+y;
    }
    public static int add(int x,int y,int z){
       return  x+y+z;
    }
    public static double add(double x,double y){
        return x+y;
    }

    private int age1;
   private String name;
   private double height;

    public Person(int age1, String name, double height) {
        this.age1 = age1;
        this.name = name;
        this.height = height;
    }
    public void speaka(){
        System.out.println(name+"今年"+age1+"岁了，身高"+height+"cm");
    }
}
